def read_file(file_path):
    file_object2 = open(file_path, 'r')
    try:
        lines = file_object2.readlines()
        return [line.strip() for line in lines]
    finally:
        file_object2.close()